import dotenv from 'dotenv';

dotenv.config();

export default {
  bot: {
    name: process.env.BOT_NAME || 'AI助手',
    maxMessageLength: parseInt(process.env.MAX_MESSAGE_LENGTH) || 500,
    rateLimitPerMinute: parseInt(process.env.RATE_LIMIT_PER_MINUTE) || 20,
    contextMessageCount: parseInt(process.env.CONTEXT_MESSAGE_COUNT) || 10
  },
  chat: {
    temperature: parseFloat(process.env.CHAT_TEMPERATURE) || 0.7,
    maxTokens: parseInt(process.env.CHAT_MAX_TOKENS) || 1000,
    ernieApiKey: process.env.ERNIE_API_KEY
  }
};